import sys
sys.path.insert(0, "/home/lighthouse/my-dream")
import os
import urllib3
urllib3.disable_warnings()

ROOT_DIR = os.path.dirname(os.path.dirname(__file__))
CONFIG_DIR = os.path.join(ROOT_DIR, 'module')
CONFIG_YML_DIR = os.path.join(CONFIG_DIR, 'config.yml')
LIB = os.path.join(ROOT_DIR, "lib")
city_code = os.path.join(LIB, "city_code.txt")
words_ch = os.path.join(LIB, "words_ch.txt")
words = os.path.join(LIB, "words.txt")
words_list = os.path.join(LIB, "words_list.txt")
zhi_1 = os.path.join(LIB, "zhi_1.txt")
zhi_2 = os.path.join(LIB, "zhi_2.txt")
zhi_3 = os.path.join(LIB, "zhi_3.txt")
zhi_4 = os.path.join(LIB, "zhi_4.txt")
# LOG_DIR = os.path.join(ROOT_DIR, 'logs')
# # if not os.path.exists(LOG_DIR):
# #     os.mkdir(LOG_DIR)
# DEBUG_FILE_PATH = os.path.join(LOG_DIR, 'debug')
# ERROR_FILE_PATH = os.path.join(LOG_DIR, 'error')
# print(ERROR_FILE_PATH)
# if not os.path.exists(DEBUG_FILE_PATH):
#      os.mkdir(DEBUG_FILE_PATH)
# if not os.path.exists(ERROR_FILE_PATH):
#      os.mkdir(ERROR_FILE_PATH)
# DEBUG_FILE = os.path.join(DEBUG_FILE_PATH, "debug.log")
# ERROR_FILE = os.path.join(ERROR_FILE_PATH, "error.log")
# if not os.path.exists(DEBUG_FILE):
#       os.mknod(DEBUG_FILE)
# if not os.path.exists(ERROR_FILE):
#       os.mknod(ERROR_FILE)
